import turtle

# 设置屏幕
screen = turtle.Screen()
screen.title("奥运五环")
screen.bgcolor("white")

# 创建画笔
pen = turtle.Turtle()
pen.pensize(6)  # 设置画笔粗细
pen.speed(5)    # 设置画笔速度

# 定义五环的颜色和位置
colors = ["blue", "black", "red", "yellow", "green"]
positions = [(-100, 0), (0, 0), (100, 0), (-50, -50), (50, -50)]

# 绘制奥运五环
def draw_circle(x, y, color):
    pen.penup()           # 抬起画笔
    pen.goto(x, y)        # 移动画笔到指定位置
    pen.pendown()         # 放下画笔
    pen.color(color)      # 设置画笔颜色
    pen.circle(50)        # 画一个半径为50的圆

# 绘制每个圆环
for i in range(len(colors)):
    x, y = positions[i]
    color = colors[i]
    draw_circle(x, y, color)

# 隐藏画笔并完成绘制
pen.hideturtle()

# 结束绘制
turtle.done()